package com.ljy.jymail.ware.feign;

import com.ljy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="jymail-product")
public interface ProductFeignService {

    /*
    * 过网关 :  /api/product/skuinfo/info/{skuId}
    *          FeignClient("jymail-gateway")
    * 不过网关: /product/skuinfo/info/{skuId}
    *          @FeignClient("jymail-product")
    * */

    @GetMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

}
